]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowAttentionHandler: Allow extensions to disconnect the signal
authorAdel Gadllah <adel.gadllah@gmail.com>
Wed, 1 Jul 2015 17:02:36 +0000 (19:02 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Wed, 1 Jul 2015 17:04:21 +0000 (19:04 +0200)
That way extensions can easily disable / remove the "is ready"
notification.

https://bugzilla.gnome.org/show_bug.cgi?id=748846

js/ui/windowAttentionHandler.js

index d5e23d2f28cd7f0bc79fdff79c7e5fd2e5404f05..7331033368170a70ad10cde6b520d9c561197e2d 100644 (file)
@@ -11,7 +11,8 @@ const WindowAttentionHandler = new Lang.Class({
 
     _init : function() {
         this._tracker = Shell.WindowTracker.get_default();
-        global.display.connect('window-demands-attention', Lang.bind(this, this._onWindowDemandsAttention));
+        this._windowDemandsAttentionId = global.display.connect('window-demands-attention',
+                                                                                                                                Lang.bind(this, this._onWindowDemandsAttention));
     },
 
     _getTitleAndBanner: function(app, window) {